package com.tencent.sr.iris.basic.saas.common.enums;

public enum IrisTaskProfitStatusEnum {
    TO_BE_COMMISSION(0, "待分佣"),
    COMMISSION_SUCCESS(1, "分佣成功"),
    CANCEL_COMMISSION(2, "分佣取消"),
    COMMISSION_FAILED(3, "分佣失败");

    private Integer status;

    private String desc;

    IrisTaskProfitStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static String getByStatus(Integer status) {
        for (IrisTaskProfitStatusEnum taskProfitStatusEnum : IrisTaskProfitStatusEnum.values()) {
            if (taskProfitStatusEnum.getStatus().equals(status)) {
                return taskProfitStatusEnum.getDesc();
            }
        }
        return "";
    }
}
